package com.model;

import com.jfinal.plugin.activerecord.Model;

import java.util.List;

/**
 * Created by chaiyuan on 2017/5/6.
 */
public class Teacher extends Model<Teacher> {
public static final Teacher dao = new Teacher();


 public List<Project> getProjects(){
     return Project.dao.find("select * from project where tea_id=?",get("tea_id"));
     }

 public List<TeacherGrade> getTG(){
    return TeacherGrade.dao.find("select * from teacher_grade where teacher_id = ?",get("tea_id"));
 }
}
